import { createWebHashHistory, createRouter } from 'vue-router'
import Home from '../view/Home/index.vue';


const routes = [
  {
    path: "/",
    redirect: "/home"
  },
  {
    path: "/home",
    component: Home
  },
  {
    path: "/shoppingcart",
    component: () => import('../view/ShoppingCart/index.vue')
  },
  {
    path: "/user",
    component: () => import('../view/User/index.vue')
  },
  {
    path: "/login",
    component: () => import('../view/Login/index.vue')
  }
]


const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router